Tasks
- POSTEdit or create an image with Flux Kontext Pro
- POSTEdit or create an image with Flux Kontext Max
- POSTGenerate an image with FLUX 1.1 [pro].
- POSTGenerate an image with FLUX.1 [pro].
- POSTGenerate an image with FLUX.1 [dev].
- POSTGenerate an image with FLUX 1.1 [pro] with ultra mode and optional raw mode.
- POSTGenerate an image with FLUX.1 Fill [pro] using an input image and mask.
- POSTExpand an image by adding pixels on any side.
- POSTGenerate an image with FLUX.1 Canny [pro] using a control image.
- POSTGenerate an image with FLUX.1 Depth [pro] using a control image.
- POSTFinetune
- POSTGenerate an image with FLUX [pro] finetune.
- POSTGenerate an image with FLUX.1 Depth [pro] finetune using a control image.
- POSTGenerate an image with FLUX.1 Canny [pro] finetune using a control image.
- POSTGenerate an image with FLUX.1 Fill [pro] finetune using an input image and mask.
- POSTGenerate an image with FLUX 1.1 [pro] finetune with ultra mode.
Tasks
Generate an image with FLUX [pro] finetune.
Submits an image generation task with FLUX [pro] finetune.
POST
/
v1
/
flux-pro-finetuned
Copy
curl --request POST \
--url https://api.us1.bfl.ai/v1/flux-pro-finetuned \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '{
"finetune_id": "my-finetune",
"finetune_strength": 1.1,
"steps": 40,
"guidance": 2.5,
"prompt": "ein fantastisches bild",
"image_prompt": "<string>",
"width": 1024,
"height": 768,
"prompt_upsampling": false,
"seed": 42,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "<string>",
"webhook_secret": "<string>"
}'
Copy
{
"id": "<string>",
"polling_url": "<string>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
Copy
curl --request POST \
--url https://api.us1.bfl.ai/v1/flux-pro-finetuned \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '{
"finetune_id": "my-finetune",
"finetune_strength": 1.1,
"steps": 40,
"guidance": 2.5,
"prompt": "ein fantastisches bild",
"image_prompt": "<string>",
"width": 1024,
"height": 768,
"prompt_upsampling": false,
"seed": 42,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "<string>",
"webhook_secret": "<string>"
}'
Copy
{
"id": "<string>",
"polling_url": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.